import React from "react";
import { render } from 'react-dom';
import "./sideWindow.css";
import sideWindowHOC from "../sideWindowHOC";

const SideWindow = sideWindowHOC(class CompItem extends React.Component {
    constructor(props) {
        super(props);
    }
    render() {
        const { contentslot, headerSlot } = this.props;
        return (
            <div className="detailBox">
                {headerSlot ?
                    <div className="drawerHear">
                        {headerSlot}
                    </div> : null}
                {contentslot ? <div className="drawerBody">
                    {contentslot}
                </div> : null}
            </div>
        )
    }
},
    function () {
        return 123
    })

export default SideWindow
render(<SideWindow />, document.getElementById('root'));